const { successData, success } = require("@/utils/r/result");
const messageService = require("@/server/message");

const message = {
  async GetFrontList(req, res) {
    successData(res, await messageService.GetFrontList());
  },
  async Save(req, res) {
    success(res, await messageService.Save(req));
  },
};

module.exports = message;
